package com.zmsoft.persistent.sfg.Sfg662040GameCrops;

import org.cnsoft.framework.db.manager.MyDBTableSQLSupport;
import org.springframework.stereotype.Component;

/**
 * 农场物品配置信息-原料建表语句
 */
@Component("Sfg662040GameCropsSQL")
//@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class Sfg662040GameCropsSQL extends MyDBTableSQLSupport {
	// 表名
	public String getTableName() {
		return "sfg662040_game_crops";
	}

	// 获得SQL内容
	public String getSQL() throws Exception {
		StringBuilder sqlStringBuilder = new StringBuilder();// 临时变量

		sqlStringBuilder.append("CREATE TABLE sfg662040_game_crops");
		sqlStringBuilder.append("(");
		sqlStringBuilder.append("    id VARCHAR(64) NOT NULL COMMENT '流水ID',");
		sqlStringBuilder.append("    game_type VARCHAR(4) COMMENT '游戏分类(1农场2牧场3鱼塘4工坊)',");
		sqlStringBuilder.append("    game_name VARCHAR(20) COMMENT '游戏名称',");
		sqlStringBuilder.append("    crops_sort BIGINT(10) DEFAULT '1' COMMENT '物品序号',");
		sqlStringBuilder.append("    crops_name VARCHAR(128) COMMENT '物品名称',");
		sqlStringBuilder.append("    crops_type_code VARCHAR(4) COMMENT '物品类别',");
		sqlStringBuilder.append("    crops_level BIGINT(10) COMMENT '物品等级',");
		sqlStringBuilder.append("    crops_pic_url VARCHAR(400) COMMENT '物品图片',");
		sqlStringBuilder.append("    crops_rool VARCHAR(20) COMMENT '成长阶段规则(1初始2成长3交配4发育5成熟)',");
		sqlStringBuilder.append("    need_farm_level BIGINT(10) COMMENT '使用需要对应等级',");
		sqlStringBuilder.append("    need_money BIGINT(10) COMMENT '使用需要消耗金币',");
		sqlStringBuilder.append("    need_exp BIGINT(10) COMMENT '使用需要消耗经验',");
		sqlStringBuilder.append("    need_time BIGINT(10) COMMENT '成熟需要时间秒',");
		sqlStringBuilder.append("    max_seasons_num BIGINT(10) COMMENT '可以循环季数',");
		sqlStringBuilder.append("    fruit_min BIGINT(10) COMMENT '收获果实数目-最小值',");
		sqlStringBuilder.append("    fruit_max BIGINT(10) COMMENT '收获果实数目-最大值',");
		sqlStringBuilder.append("    fruit_price BIGINT(10) COMMENT '每个果实价格',");
		sqlStringBuilder.append("    fruit_volume BIGINT(10) COMMENT '每个果实占用仓库容积大小',");
		sqlStringBuilder.append("    crops_exp BIGINT(10) COMMENT '每季收获经验',");
		sqlStringBuilder.append("    memo VARCHAR(200) COMMENT '备注',");
		sqlStringBuilder.append("    fb1 VARCHAR(40) COMMENT '备用1',");
		sqlStringBuilder.append("    fb2 VARCHAR(20) COMMENT '备用2',");
		sqlStringBuilder.append("    fb3 VARCHAR(50) COMMENT '备用3',");
		sqlStringBuilder.append("    fb4 VARCHAR(200) COMMENT '备用4',");
		sqlStringBuilder.append("    fb5 VARCHAR(80) COMMENT '备用5',");
		sqlStringBuilder.append("    eb1 VARCHAR(40) COMMENT '扩展1',");
		sqlStringBuilder.append("    eb2 VARCHAR(80) COMMENT '扩展2',");
		sqlStringBuilder.append("    eb3 VARCHAR(20) COMMENT '扩展3',");
		sqlStringBuilder.append("    eb4 VARCHAR(10) COMMENT '扩展4',");
		sqlStringBuilder.append("    eb5 VARCHAR(20) COMMENT '扩展5',");
		sqlStringBuilder.append("    sid VARCHAR(20) COMMENT '数据归属系统',");
		sqlStringBuilder.append("    del_flag CHAR(1) DEFAULT '0' COMMENT '有效标识',");
		sqlStringBuilder.append("    create_time VARCHAR(24) DEFAULT '2018-02-02' NOT NULL COMMENT '创建时间',");
		sqlStringBuilder.append("    creator VARCHAR(64) DEFAULT 'SYSTEM' NOT NULL COMMENT '创建者',");
		sqlStringBuilder.append("    update_time VARCHAR(24) COMMENT '更新时间',");
		sqlStringBuilder.append("    updator VARCHAR(64) COMMENT '最后更新者',");
		sqlStringBuilder.append("  PRIMARY KEY (id)");
		sqlStringBuilder.append(") COMMENT '农场物品配置信息-原料';");

		return sqlStringBuilder.toString();
	}

}
